All Functions of Week 9

read.csv

{utils}

Read a csv file to data frame. Specify stringsAsFactors = FALSE to keep all string columns as characters

rm

{base}

Remove objects

subset

{base}

Return subsets of vectors, matrices or data frames which meet conditions.

ls

{base}

Return a vector of character strings giving the names of the objects in the specified environment

with

{base}

evaluate expression in the context of a data frame

levels

{base}

Get levels of a factor

names

{base}

Retrieve names of a list/vector

ifelse

{base}

Return a or b depending on the value of test

geom_point

{GGPLOT2}

Generates a scatter plot

modelsummary

{modelsummary}

Creates regression and data tables

setwd

{base}

Set Working Directory

droplevels

{base}

Drop Unused Levels from Factors

confint

{stats}

Calculate confidence Intervals for Model Parameters

geom_smooth

{GGPLOT2}

Generates a smoothed conditional means curve / line

is.element

{base}

Check if a value is element of a vector

c

{base}

Combine values/vectors into a vector

mutate

{dplyr}

Modify/create a column in a data frame

log

{base}

log (default base = e)

summary

{base}

Obtain summary statistics or detailed regression output

theme_latex

{tinytable}

A theme for modelsummary/tinytable tables

prop.table

{base}

Transform frequency table into table of proportions

table

{base}

Obtain frequency table of a variable/cross-tabulation of two variables

lm

{base}

Fit a linear model

ylab

{GGPLOT2}

Label the y axis (ggplot)

as.numeric

{base}

Coerce a vector to numeric

relevel

{stats}

Reorder Levels of Factor

list

{base}

Create a list object

ggplot

{GGPLOT2}

Create a ggplot graph

library

{base}

Load an R package

xlab

{GGPLOT2}

Label the x axis (ggplot)

aes

{GGPLOT2}

Construct aesthetic mapping of a ggplot graph

recode

{dplyr}

Recode a variable

group_tt

{tinytable}

Grouping in tinytable

The end!